package test.com.sms.selenium.sms.util;

import org.openqa.selenium.By;

import test.com.sms.selenium.framework.SeleniumPageUtil;
import test.com.sms.selenium.util.SeleniumUtil;

public class SmsHomePageUtil extends SeleniumPageUtil 
{
	
	public final static By WELCOME_LABEL = By.xpath("//span[@class='username']");
	
	
	
	/** if element HOME_SPAN_EXPIRATION shows, this page should has already been loaded.*/
	public final static void waitForPageToLoad() {
		SeleniumUtil.selectDefaultContent();
		SeleniumUtil.waitForFixedMilliseconds(1000);
		SeleniumUtil.findElement(WELCOME_LABEL);
		SeleniumUtil.waitForFixedMilliseconds(1000);
	}
	
	
}
